package edu.nf.controller.maeil;

import edu.nf.hotel.util.email.Email_Code;
import org.nf.web.annotation.RequestMapping;
import org.nf.web.annotation.RequestParam;
import org.nf.web.servlet.View;

/**
 * @Date 2023-06-28
 * @Author 陈
 *
 */
public class Email_CodeController {
    /***
     *
     * @param EMAIL 发件人邮箱地址
     * @param userEmail 邮箱地址
     *
     */
    @RequestMapping("/user/getEmailCode.do")
    public View getEmailCode(@RequestParam("EMAIL") String EMAIL,
                             @RequestParam("userEmail")String userEmail){
        //调用发送邮箱封装类，调用静态方法
        Email_Code.Mail_Code(EMAIL, "自己的QQ邮箱授权码", "猫尔顿酒店") ;

        return null;
    }
}
